package com.yy.ttmodule.udp;


import android.support.annotation.NonNull;

public class TxData {

    private static TxData txData = null;

    private byte[] param = {};
    private byte[] data = {};

    private TxData() {
    }

    public static TxData getInstance() {
        if (txData == null) {
            synchronized (TxData.class) {
                if (txData == null) {
                    txData = new TxData();
                }
            }
        }
        return txData;
    }

    public synchronized void setParam(@NonNull byte[] b) {
        param = b;
    }

    public synchronized void setData(@NonNull byte[] bs) {
        data = bs;
    }

    public byte[] getParam() {
        return param;
    }

    public byte[] getData() {
        return data;
    }

}
